import { Form, Input } from 'antd';
import MemberSelector from '../components/MemberSelector';
import { formNameVerification } from '../../utils';

export default function Initiator() {
  return (
    <>
      <Form.Item label='任务标识' name={['baseInfo', 'activityNo']}>
        <Input readOnly />
      </Form.Item>
      <Form.Item
        label='任务名称'
        name={['baseInfo', 'taskName']}
        rules={formNameVerification}
        className='process-designer-form-item-required'
      >
        <Input />
      </Form.Item>
      <Form.Item label='选择发起人' name={['baseInfo', 'assignee']} hidden>
        <MemberSelector />
      </Form.Item>
    </>
  );
}
